----------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  C:\Users\finseraa\Dropbox\bias_politicians\paper\JOP\Round 2\replication\jo
> p_replication.log
  log type:  text
 opened on:   8 Mar 2023, 19:08:00

. 
. do politicians_experiment.do

. *This code reproduces the analyses of the experiment on politicians. 
. *Running the code produces a set of figures that are saved in the working directory
. 
. clear

. use politicians_experiment

. 
. *FIGURE 1
. reg quality treated control, cl(id) nocons

Linear regression                               Number of obs     =      2,294
                                                F(2, 1146)        =   12842.49
                                                Prob > F          =     0.0000
                                                R-squared         =     0.9491
                                                Root MSE          =     .17937

                                 (Std. err. adjusted for 1,147 clusters in id)
------------------------------------------------------------------------------
             |               Robust
     quality | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
     treated |   .7955301   .0058075   136.98   0.000     .7841356    .8069246
     control |   .7245922   .0087101    83.19   0.000     .7075027    .7416817
------------------------------------------------------------------------------

. coefplot, title("Quality", color(black) size(medsmall) ) coeflab(treated = "Treatment"
>  control = "Control") color(black) graphregion(color(gs16)) ciopts(color(black)) plotr
> egion(style(none)) vertical  ylab(.6 (.05) .8, angle(0) nogrid)

. graph save Graph "treatment_politicians_quality.gph", replace
file treatment_politicians_quality.gph saved

. reg ranking treated control, cl(id) nocons

Linear regression                               Number of obs     =      2,294
                                                F(2, 1146)        =    7235.69
                                                Prob > F          =     0.0000
                                                R-squared         =     0.9108
                                                Root MSE          =     .21818

                                 (Std. err. adjusted for 1,147 clusters in id)
------------------------------------------------------------------------------
             |               Robust
     ranking | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
     treated |   .7224321   .0069347   104.18   0.000      .708826    .7360381
     control |    .637785   .0106025    60.15   0.000     .6169825    .6585876
------------------------------------------------------------------------------

. coefplot, title("Ranking", color(black) size(medsmall) ) coeflab(treated = "Treatment"
>  control = "Control") color(black) graphregion(color(gs16)) ciopts(color(black)) plotr
> egion(style(none)) vertical  ylab(.6 (.05) .8, angle(0) nogrid)

. graph save Graph "treatment_politicians_ranking.gph", replace
file treatment_politicians_ranking.gph saved

. 
. graph combine "treatment_politicians_quality.gph" "treatment_politicians_ranking.gph",
>  rows(1)  graphregion(color(gs16)) title("Experimental results", color(black) size(sma
> ll))

. 
. *TABLE 1
. foreach y in quality ranking  {
  2. reg `y' minority, cl(id)
  3. }

Linear regression                               Number of obs     =      2,294
                                                F(1, 1146)        =      45.92
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0327
                                                Root MSE          =     .17937

                                 (Std. err. adjusted for 1,147 clusters in id)
------------------------------------------------------------------------------
             |               Robust
     quality | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
    minority |   .0709379   .0104687     6.78   0.000      .050398    .0914778
       _cons |   .7245922   .0087101    83.19   0.000     .7075027    .7416817
------------------------------------------------------------------------------

Linear regression                               Number of obs     =      2,294
                                                F(1, 1146)        =      44.64
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0315
                                                Root MSE          =     .21818

                                 (Std. err. adjusted for 1,147 clusters in id)
------------------------------------------------------------------------------
             |               Robust
     ranking | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
    minority |   .0846471    .012669     6.68   0.000     .0597901    .1095041
       _cons |    .637785   .0106025    60.15   0.000     .6169825    .6585876
------------------------------------------------------------------------------

. 
. *TABLE 3
. *immigration share
. foreach y in quality ranking {
  2. reg `y' minority minorityXimshare imshare, cl(id)
  3. }

Linear regression                               Number of obs     =      2,016
                                                F(3, 1007)        =      14.10
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0335
                                                Root MSE          =     .17821

                                     (Std. err. adjusted for 1,008 clusters in id)
----------------------------------------------------------------------------------
                 |               Robust
         quality | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-----------------+----------------------------------------------------------------
        minority |   .0669811   .0109252     6.13   0.000     .0455422    .0884199
minorityXimshare |     -.0495   .2314335    -0.21   0.831    -.5036472    .4046472
         imshare |  -.2289577   .1905449    -1.20   0.230    -.6028682    .1449528
           _cons |   .7263705   .0089735    80.95   0.000     .7087616    .7439793
----------------------------------------------------------------------------------

Linear regression                               Number of obs     =      2,016
                                                F(3, 1007)        =      14.48
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0342
                                                Root MSE          =     .21769

                                     (Std. err. adjusted for 1,008 clusters in id)
----------------------------------------------------------------------------------
                 |               Robust
         ranking | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-----------------+----------------------------------------------------------------
        minority |   .0825694   .0135142     6.11   0.000     .0560503    .1090886
minorityXimshare |   .0793586   .2874445     0.28   0.783    -.4847004    .6434175
         imshare |  -.3821344   .2419214    -1.58   0.115    -.8568622    .0925935
           _cons |   .6398646   .0112911    56.67   0.000     .6177079    .6620213
----------------------------------------------------------------------------------

. 
. *enop
. foreach y in quality ranking {
  2. reg `y' minority minorityXenop enop, cl(id)
  3. }

Linear regression                               Number of obs     =      2,006
                                                F(3, 1002)        =      14.07
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0322
                                                Root MSE          =     .17825

                                  (Std. err. adjusted for 1,003 clusters in id)
-------------------------------------------------------------------------------
              |               Robust
      quality | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
--------------+----------------------------------------------------------------
     minority |     .06631   .0109052     6.08   0.000     .0449104    .0877096
minorityXenop |  -.0106619    .011365    -0.94   0.348    -.0329638      .01164
         enop |  -.0026733   .0091766    -0.29   0.771    -.0206809    .0153343
        _cons |   .7267579   .0089312    81.37   0.000     .7092319     .744284
-------------------------------------------------------------------------------

Linear regression                               Number of obs     =      2,006
                                                F(3, 1002)        =      12.72
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0313
                                                Root MSE          =     .21798

                                  (Std. err. adjusted for 1,003 clusters in id)
-------------------------------------------------------------------------------
              |               Robust
      ranking | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
--------------+----------------------------------------------------------------
     minority |   .0818893   .0135768     6.03   0.000      .055247    .1085315
minorityXenop |  -.0129389   .0148682    -0.87   0.384    -.0421152    .0162374
         enop |   .0009235   .0121369     0.08   0.939    -.0228932    .0247401
        _cons |   .6403134   .0113495    56.42   0.000     .6180419     .662585
-------------------------------------------------------------------------------

. 
. *leftparty
. foreach y in quality ranking {
  2. reg `y' minority minorityXleftparty leftparty, cl(id)
  3. }

Linear regression                               Number of obs     =      2,294
                                                F(3, 1146)        =      16.24
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0347
                                                Root MSE          =     .17926

                                       (Std. err. adjusted for 1,147 clusters in id)
------------------------------------------------------------------------------------
                   |               Robust
           quality | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------------+----------------------------------------------------------------
          minority |   .0691344   .0136607     5.06   0.000     .0423316    .0959372
minorityXleftparty |   .0028768   .0209049     0.14   0.891    -.0381393    .0438929
         leftparty |   .0149164   .0172559     0.86   0.388    -.0189404    .0487732
             _cons |   .7194686   .0113973    63.13   0.000     .6971067    .7418304
------------------------------------------------------------------------------------

Linear regression                               Number of obs     =      2,294
                                                F(3, 1146)        =      15.46
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0334
                                                Root MSE          =     .21806

                                       (Std. err. adjusted for 1,147 clusters in id)
------------------------------------------------------------------------------------
                   |               Robust
           ranking | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------------+----------------------------------------------------------------
          minority |   .0851181   .0163223     5.21   0.000     .0530932    .1171429
minorityXleftparty |  -.0038845   .0255647    -0.15   0.879    -.0540434    .0462745
         leftparty |   .0227238   .0212174     1.07   0.284    -.0189056    .0643531
             _cons |   .6299796   .0137376    45.86   0.000     .6030259    .6569334
------------------------------------------------------------------------------------

. 
. *motivated to not appear prejudiced
. foreach y in quality ranking {
  2. reg `y' minority minorityXnonracist nonracist, cl(id)
  3. }

Linear regression                               Number of obs     =      2,294
                                                F(3, 1146)        =      23.76
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0483
                                                Root MSE          =       .178

                                       (Std. err. adjusted for 1,147 clusters in id)
------------------------------------------------------------------------------------
                   |               Robust
           quality | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------------+----------------------------------------------------------------
          minority |   .0558657   .0140447     3.98   0.000     .0283095    .0834219
minorityXnonracist |   .0349002    .020823     1.68   0.094    -.0059554    .0757557
         nonracist |   .0192728   .0173693     1.11   0.267    -.0148064     .053352
             _cons |   .7168511   .0117192    61.17   0.000     .6938576    .7398445
------------------------------------------------------------------------------------

Linear regression                               Number of obs     =      2,294
                                                F(3, 1146)        =      21.50
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0446
                                                Root MSE          =     .21679

                                       (Std. err. adjusted for 1,147 clusters in id)
------------------------------------------------------------------------------------
                   |               Robust
           ranking | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------------+----------------------------------------------------------------
          minority |   .0550874   .0165911     3.32   0.001      .022535    .0876397
minorityXnonracist |   .0705972    .025543     2.76   0.006      .020481    .1207134
         nonracist |  -.0087458   .0214145    -0.41   0.683    -.0507618    .0332703
             _cons |   .6412979    .013987    45.85   0.000     .6138549    .6687408
------------------------------------------------------------------------------------

. 
. *TABLE A1
. su quality1 quality2 ranking1 ranking2 electable1 electable2 minority male university 
> age missage west north leftparty if minority!=. & profile==1

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
    quality1 |      1,147    .7429784    .1877024          0          1
    quality2 |      1,147    .8034286    .1716363          0          1
    ranking1 |      1,147    .6577816    .2230961          0          1
    ranking2 |      1,147       .7338    .2136189          0          1
  electable1 |      1,147    .6890528     .215694          0          1
-------------+---------------------------------------------------------
  electable2 |      1,147    .7454161    .2179056          0          1
    minority |      1,149    .6849434    .4647407          0          1
        male |      1,149    .6100957    .4879407          0          1
  university |      1,149    .6823325    .4657721          0          1
         age |      1,149     52.5805    13.00877         25         85
-------------+---------------------------------------------------------
     missage |      1,149    .0087032    .0929246          0          1
        west |      1,149     .383812    .4865248          0          1
       north |      1,149    .2280244    .4197411          0          1
   leftparty |      1,149    .3742385    .4841364          0          1

.  
. *TABLE A3 (column 1)
. reg minority male university age missage west north leftparty if profile==1, r

Linear regression                               Number of obs     =      1,149
                                                F(7, 1141)        =       2.00
                                                Prob > F          =     0.0522
                                                R-squared         =     0.0121
                                                Root MSE          =     .46334

------------------------------------------------------------------------------
             |               Robust
    minority | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
        male |   .0281288   .0289227     0.97   0.331    -.0286188    .0848764
  university |  -.0057549   .0298711    -0.19   0.847    -.0643634    .0528536
         age |  -.0035044    .001067    -3.28   0.001    -.0055978   -.0014109
     missage |  -.0752421   .1528267    -0.49   0.623     -.375095    .2246108
        west |    -.01827   .0312275    -0.59   0.559    -.0795397    .0429997
       north |   -.014168   .0359359    -0.39   0.693    -.0846758    .0563398
   leftparty |   .0414096   .0281027     1.47   0.141    -.0137293    .0965485
       _cons |   .8513714   .0657751    12.94   0.000     .7223176    .9804252
------------------------------------------------------------------------------

. testparm male university age missage west north leftparty 

 ( 1)  male = 0
 ( 2)  university = 0
 ( 3)  age = 0
 ( 4)  missage = 0
 ( 5)  west = 0
 ( 6)  north = 0
 ( 7)  leftparty = 0

       F(  7,  1141) =    2.00
            Prob > F =    0.0522

. 
. *FIGURE A4
. twoway (hist quality if treated==1,  xtitle("Quality") percent fcolor(none) lcolor(bla
> ck) graphregion(color(gs16))  plotregion(style(none)) vertical ylab(, angle(0) nogrid)
>  )(hist quality if treated==0, percent fcolor(none) lcolor(red)), legend(order(1 "Trea
> ted" 2 "Control") region(col(white)))

. graph save Graph "dist.figs_quality.gph", replace
file dist.figs_quality.gph saved

. twoway (hist ranking if treated==1,  xtitle("Ranking") percent fcolor(none) lcolor(bla
> ck) graphregion(color(gs16))  plotregion(style(none)) vertical ylab(, angle(0) nogrid)
>  )(hist ranking if treated==0, percent fcolor(none) lcolor(red)), legend(order(1 "Trea
> ted" 2 "Control") region(col(white)))

. graph save Graph "dist.figs_ranking.gph", replace
file dist.figs_ranking.gph saved

. graph combine "dist.figs_quality.gph" "dist.figs_ranking.gph", rows(1)  graphregion(co
> lor(gs16))

. 
. *TABLE A5
. reg electable minority, cl(id)

Linear regression                               Number of obs     =      2,294
                                                F(1, 1146)        =      23.14
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0177
                                                Root MSE          =     .21668

                                 (Std. err. adjusted for 1,147 clusters in id)
------------------------------------------------------------------------------
             |               Robust
   electable | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
    minority |   .0626456   .0130242     4.81   0.000     .0370916    .0881996
       _cons |   .6743056   .0109828    61.40   0.000     .6527569    .6958543
------------------------------------------------------------------------------

. reg electable minority age missage, cl(id)

Linear regression                               Number of obs     =      2,294
                                                F(3, 1146)        =      11.04
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0252
                                                Root MSE          =     .21595

                                 (Std. err. adjusted for 1,147 clusters in id)
------------------------------------------------------------------------------
             |               Robust
   electable | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
    minority |   .0586836   .0130058     4.51   0.000     .0331657    .0842016
         age |  -.0014383   .0004486    -3.21   0.001    -.0023186   -.0005581
     missage |  -.0340161    .078043    -0.44   0.663    -.1871392     .119107
       _cons |   .7529147   .0268827    28.01   0.000     .7001699    .8056594
------------------------------------------------------------------------------

. reg electable minority male university age missage west north leftparty, cl(id)

Linear regression                               Number of obs     =      2,294
                                                F(8, 1146)        =       5.96
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0371
                                                Root MSE          =     .21487

                                 (Std. err. adjusted for 1,147 clusters in id)
------------------------------------------------------------------------------
             |               Robust
   electable | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
    minority |    .058418   .0129318     4.52   0.000     .0330452    .0837907
        male |  -.0148294   .0120319    -1.23   0.218    -.0384363    .0087776
  university |   .0361909   .0135978     2.66   0.008     .0095116    .0628703
         age |  -.0012869   .0004564    -2.82   0.005    -.0021824   -.0003915
     missage |  -.0133197   .0765895    -0.17   0.862    -.1635911    .1369518
        west |   .0046843   .0134091     0.35   0.727    -.0216248    .0309934
       north |   .0139401   .0157295     0.89   0.376    -.0169217    .0448019
   leftparty |   .0229035   .0120688     1.90   0.058    -.0007758    .0465829
       _cons |   .7157673   .0309005    23.16   0.000     .6551394    .7763953
------------------------------------------------------------------------------

. 
. *TABLE A6
. reg electable malik warsam, cl(id)

Linear regression                               Number of obs     =      2,294
                                                F(2, 1146)        =      12.25
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0182
                                                Root MSE          =     .21668

                                 (Std. err. adjusted for 1,147 clusters in id)
------------------------------------------------------------------------------
             |               Robust
   electable | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
       malik |   .0687521   .0145557     4.72   0.000     .0401932     .097311
      warsam |   .0575116   .0149066     3.86   0.000     .0282644    .0867589
       _cons |   .6743056   .0109852    61.38   0.000     .6527521     .695859
------------------------------------------------------------------------------

. reg electable malik warsam age missage, cl(id)

Linear regression                               Number of obs     =      2,294
                                                F(4, 1146)        =       8.76
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0256
                                                Root MSE          =     .21595

                                 (Std. err. adjusted for 1,147 clusters in id)
------------------------------------------------------------------------------
             |               Robust
   electable | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
       malik |   .0646155   .0145706     4.43   0.000     .0360275    .0932035
      warsam |   .0537092   .0148462     3.62   0.000     .0245805    .0828379
         age |  -.0014354    .000449    -3.20   0.001    -.0023163   -.0005544
     missage |  -.0343084   .0779802    -0.44   0.660    -.1873083    .1186916
       _cons |   .7527566   .0269009    27.98   0.000     .6999761    .8055372
------------------------------------------------------------------------------

. reg electable malik warsam male university age missage west north leftparty, cl(id)

Linear regression                               Number of obs     =      2,294
                                                F(9, 1146)        =       5.47
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0373
                                                Root MSE          =     .21488

                                 (Std. err. adjusted for 1,147 clusters in id)
------------------------------------------------------------------------------
             |               Robust
   electable | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
       malik |   .0631879   .0144713     4.37   0.000     .0347947    .0915812
      warsam |   .0544118    .014776     3.68   0.000     .0254207     .083403
        male |   -.014519   .0120186    -1.21   0.227    -.0380999    .0090619
  university |   .0359414   .0136354     2.64   0.009     .0091883    .0626945
         age |  -.0012861   .0004564    -2.82   0.005    -.0021817   -.0003906
     missage |  -.0136033   .0765289    -0.18   0.859    -.1637557    .1365492
        west |   .0048011   .0133888     0.36   0.720    -.0214682    .0310705
       north |   .0144188   .0157861     0.91   0.361    -.0165542    .0453918
   leftparty |   .0228136   .0120696     1.89   0.059    -.0008674    .0464946
       _cons |   .7155865   .0309384    23.13   0.000     .6548843    .7762887
------------------------------------------------------------------------------

. 
. *TABLE A7
. foreach y in quality ranking{
  2. reg `y' minority, cl(id)
  3. reg `y' minority age missage, cl(id)
  4. reg `y' minority male university age missage west north leftparty, cl(id)
  5. }

Linear regression                               Number of obs     =      2,294
                                                F(1, 1146)        =      45.92
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0327
                                                Root MSE          =     .17937

                                 (Std. err. adjusted for 1,147 clusters in id)
------------------------------------------------------------------------------
             |               Robust
     quality | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
    minority |   .0709379   .0104687     6.78   0.000      .050398    .0914778
       _cons |   .7245922   .0087101    83.19   0.000     .7075027    .7416817
------------------------------------------------------------------------------

Linear regression                               Number of obs     =      2,294
                                                F(3, 1146)        =      21.45
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0492
                                                Root MSE          =      .1779

                                 (Std. err. adjusted for 1,147 clusters in id)
------------------------------------------------------------------------------
             |               Robust
     quality | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
    minority |   .0661197   .0103648     6.38   0.000     .0457835    .0864558
         age |  -.0016875     .00038    -4.44   0.000     -.002433   -.0009419
     missage |  -.0892243   .0737761    -1.21   0.227    -.2339756     .055527
       _cons |   .8173631   .0220095    37.14   0.000     .7741796    .8605467
------------------------------------------------------------------------------

Linear regression                               Number of obs     =      2,294
                                                F(8, 1146)        =      11.16
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0642
                                                Root MSE          =     .17669

                                 (Std. err. adjusted for 1,147 clusters in id)
------------------------------------------------------------------------------
             |               Robust
     quality | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
    minority |   .0664542   .0102699     6.47   0.000     .0463044    .0866041
        male |    -.01366   .0099487    -1.37   0.170    -.0331797    .0058596
  university |   .0382342   .0107249     3.57   0.000     .0171916    .0592768
         age |  -.0015487   .0003846    -4.03   0.000    -.0023034   -.0007941
     missage |  -.0662206   .0733862    -0.90   0.367     -.210207    .0777658
        west |   .0127679   .0109416     1.17   0.243    -.0086998    .0342357
       north |   .0189742   .0125561     1.51   0.131    -.0056612    .0436097
   leftparty |   .0114619    .009816     1.17   0.243    -.0077975    .0307213
       _cons |   .7783828   .0240524    32.36   0.000      .731191    .8255745
------------------------------------------------------------------------------

Linear regression                               Number of obs     =      2,294
                                                F(1, 1146)        =      44.64
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0315
                                                Root MSE          =     .21818

                                 (Std. err. adjusted for 1,147 clusters in id)
------------------------------------------------------------------------------
             |               Robust
     ranking | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
    minority |   .0846471    .012669     6.68   0.000     .0597901    .1095041
       _cons |    .637785   .0106025    60.15   0.000     .6169825    .6585876
------------------------------------------------------------------------------

Linear regression                               Number of obs     =      2,294
                                                F(3, 1146)        =      16.46
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0374
                                                Root MSE          =     .21761

                                 (Std. err. adjusted for 1,147 clusters in id)
------------------------------------------------------------------------------
             |               Robust
     ranking | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
    minority |   .0810874     .01253     6.47   0.000      .056503    .1056718
         age |  -.0012852   .0004561    -2.82   0.005    -.0021801   -.0003903
     missage |  -.0360537   .0699947    -0.52   0.607    -.1733859    .1012785
       _cons |    .708088   .0261036    27.13   0.000     .6568718    .7593042
------------------------------------------------------------------------------

Linear regression                               Number of obs     =      2,294
                                                F(8, 1146)        =       9.66
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0542
                                                Root MSE          =     .21593

                                 (Std. err. adjusted for 1,147 clusters in id)
------------------------------------------------------------------------------
             |               Robust
     ranking | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
    minority |   .0819999   .0124031     6.61   0.000     .0576645    .1063352
        male |  -.0328555    .011878    -2.77   0.006    -.0561607   -.0095504
  university |   .0349474   .0128348     2.72   0.007     .0097649    .0601298
         age |  -.0010197   .0004588    -2.22   0.026      -.00192   -.0001195
     missage |   -.015775   .0725943    -0.22   0.828    -.1582078    .1266577
        west |   .0299831   .0132963     2.25   0.024     .0038952     .056071
       north |   .0220688    .014812     1.49   0.137    -.0069929    .0511304
   leftparty |   .0149185   .0118246     1.26   0.207    -.0082818    .0381189
       _cons |    .667421   .0279478    23.88   0.000     .6125863    .7222556
------------------------------------------------------------------------------

. 
. *TABLE A8
. foreach y in quality ranking{
  2. reg `y' minority if profile==1, cl(id)
  3. reg `y' minority if profile==2, cl(id)
  4. }

Linear regression                               Number of obs     =      1,147
                                                F(1, 1146)        =      32.39
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0279
                                                Root MSE          =     .18514

                                 (Std. err. adjusted for 1,147 clusters in id)
------------------------------------------------------------------------------
             |               Robust
     quality | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
    minority |   .0675102   .0118622     5.69   0.000     .0442362    .0907842
       _cons |   .6967159    .009883    70.50   0.000     .6773251    .7161067
------------------------------------------------------------------------------

Linear regression                               Number of obs     =      1,147
                                                F(1, 1146)        =      48.03
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0405
                                                Root MSE          =      .1682

                                 (Std. err. adjusted for 1,147 clusters in id)
------------------------------------------------------------------------------
             |               Robust
     quality | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
    minority |   .0743655   .0107306     6.93   0.000     .0533116    .0954193
       _cons |   .7524685   .0089087    84.46   0.000     .7349893    .7699477
------------------------------------------------------------------------------

Linear regression                               Number of obs     =      1,147
                                                F(1, 1146)        =      41.76
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0361
                                                Root MSE          =     .21912

                                 (Std. err. adjusted for 1,147 clusters in id)
------------------------------------------------------------------------------
             |               Robust
     ranking | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
    minority |   .0912731   .0141239     6.46   0.000     .0635616    .1189847
       _cons |   .5952352   .0118253    50.34   0.000     .5720336    .6184368
------------------------------------------------------------------------------

Linear regression                               Number of obs     =      1,147
                                                F(1, 1146)        =      32.75
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0288
                                                Root MSE          =     .21061

                                 (Std. err. adjusted for 1,147 clusters in id)
------------------------------------------------------------------------------
             |               Robust
     ranking | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
    minority |    .078021   .0136339     5.72   0.000     .0512708    .1047712
       _cons |   .6803349   .0114545    59.39   0.000     .6578607    .7028091
------------------------------------------------------------------------------

. 
. *TABLE A9
. foreach y in quality ranking{
  2. reg `y' malik warsam, cl(id)
  3. reg `y' malik warsam age missage, cl(id)
  4. reg `y' malik warsam male university age missage west north leftparty, cl(id)
  5. }

Linear regression                               Number of obs     =      2,294
                                                F(2, 1146)        =      22.96
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0327
                                                Root MSE          =     .17941

                                 (Std. err. adjusted for 1,147 clusters in id)
------------------------------------------------------------------------------
             |               Robust
     quality | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
       malik |   .0704146   .0120113     5.86   0.000     .0468479    .0939812
      warsam |   .0713778   .0119121     5.99   0.000     .0480059    .0947497
       _cons |   .7245922    .008712    83.17   0.000      .707499    .7416855
------------------------------------------------------------------------------

Linear regression                               Number of obs     =      2,294
                                                F(4, 1146)        =      16.14
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0493
                                                Root MSE          =     .17794

                                 (Std. err. adjusted for 1,147 clusters in id)
------------------------------------------------------------------------------
             |               Robust
     quality | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
       malik |   .0654174   .0119168     5.49   0.000     .0420362    .0887987
      warsam |   .0667086   .0117709     5.67   0.000     .0436136    .0898035
         age |  -.0016878   .0003804    -4.44   0.000    -.0024343   -.0009414
     missage |  -.0891897   .0738282    -1.21   0.227    -.2340433    .0556639
       _cons |   .8173819   .0220324    37.10   0.000     .7741535    .8606103
------------------------------------------------------------------------------

Linear regression                               Number of obs     =      2,294
                                                F(9, 1146)        =       9.99
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0642
                                                Root MSE          =     .17673

                                 (Std. err. adjusted for 1,147 clusters in id)
------------------------------------------------------------------------------
             |               Robust
     quality | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
       malik |   .0647524   .0117662     5.50   0.000     .0416667    .0878381
      warsam |   .0678836   .0116901     5.81   0.000     .0449472      .09082
        male |  -.0137708   .0099583    -1.38   0.167    -.0333092    .0057677
  university |   .0383232   .0107516     3.56   0.000     .0172282    .0594182
         age |   -.001549   .0003849    -4.02   0.000    -.0023043   -.0007938
     missage |  -.0661194   .0734739    -0.90   0.368    -.2102778    .0780391
        west |   .0127262   .0109244     1.16   0.244    -.0087078    .0341603
       north |   .0188034   .0124941     1.50   0.133    -.0057105    .0433174
   leftparty |    .011494   .0098112     1.17   0.242    -.0077558    .0307438
       _cons |   .7784473   .0240662    32.35   0.000     .7312285    .8256661
------------------------------------------------------------------------------

Linear regression                               Number of obs     =      2,294
                                                F(2, 1146)        =      22.33
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0316
                                                Root MSE          =     .21821

                                 (Std. err. adjusted for 1,147 clusters in id)
------------------------------------------------------------------------------
             |               Robust
     ranking | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
       malik |   .0809156   .0144245     5.61   0.000     .0526141    .1092171
      warsam |   .0877843   .0144169     6.09   0.000     .0594977    .1160709
       _cons |    .637785   .0106048    60.14   0.000     .6169779    .6585921
------------------------------------------------------------------------------

Linear regression                               Number of obs     =      2,294
                                                F(4, 1146)        =      12.34
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0375
                                                Root MSE          =     .21764

                                 (Std. err. adjusted for 1,147 clusters in id)
------------------------------------------------------------------------------
             |               Robust
     ranking | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
       malik |   .0771923   .0143345     5.39   0.000     .0490676     .105317
      warsam |   .0843538   .0142552     5.92   0.000     .0563847     .112323
         age |  -.0012872   .0004564    -2.82   0.005    -.0021827   -.0003916
     missage |  -.0358618   .0702772    -0.51   0.610    -.1737483    .1020247
       _cons |   .7081917   .0261208    27.11   0.000     .6569417    .7594417
------------------------------------------------------------------------------

Linear regression                               Number of obs     =      2,294
                                                F(9, 1146)        =       8.60
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0546
                                                Root MSE          =     .21594

                                 (Std. err. adjusted for 1,147 clusters in id)
------------------------------------------------------------------------------
             |               Robust
     ranking | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
       malik |   .0765938   .0142078     5.39   0.000     .0487177      .10447
      warsam |   .0865403   .0140779     6.15   0.000     .0589189    .1141618
        male |  -.0332073    .011859    -2.80   0.005    -.0564751   -.0099396
  university |   .0352302    .012859     2.74   0.006     .0100003    .0604601
         age |  -.0010206   .0004589    -2.22   0.026     -.001921   -.0001203
     missage |  -.0154536   .0729988    -0.21   0.832    -.1586799    .1277727
        west |   .0298507   .0132766     2.25   0.025     .0038015    .0558999
       north |   .0215263   .0147975     1.45   0.146    -.0075069    .0505594
   leftparty |   .0150204   .0118166     1.27   0.204    -.0081641     .038205
       _cons |    .667626   .0279564    23.88   0.000     .6127745    .7224774
------------------------------------------------------------------------------

. 
. *TABLE A11
. foreach y in quality ranking {
  2. reg `y' minority minorityXimcpd imcpd, cl(id)
  3. reg `y' minority minorityXimcpd imcpd leftparty male university age missage west no
> rth, cl(id)
  4. }

Linear regression                               Number of obs     =      2,294
                                                F(3, 1146)        =      21.21
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0433
                                                Root MSE          =     .17845

                                   (Std. err. adjusted for 1,147 clusters in id)
--------------------------------------------------------------------------------
               |               Robust
       quality | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
---------------+----------------------------------------------------------------
      minority |   .0400631   .0186231     2.15   0.032     .0035239    .0766024
minorityXimcpd |   .0602492   .0313742     1.92   0.055    -.0013082    .1218065
         imcpd |   .0113652   .0256137     0.44   0.657    -.0388898    .0616201
         _cons |   .7191678   .0149624    48.07   0.000     .6898111    .7485245
--------------------------------------------------------------------------------

Linear regression                               Number of obs     =      2,294
                                                F(10, 1146)       =      11.24
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0726
                                                Root MSE          =     .17597

                                   (Std. err. adjusted for 1,147 clusters in id)
--------------------------------------------------------------------------------
               |               Robust
       quality | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
---------------+----------------------------------------------------------------
      minority |   .0334547   .0183551     1.82   0.069    -.0025586     .069468
minorityXimcpd |   .0658422   .0309311     2.13   0.033     .0051542    .1265302
         imcpd |  -.0013555   .0253405    -0.05   0.957    -.0510746    .0483636
     leftparty |   .0085447   .0098211     0.87   0.384    -.0107246     .027814
          male |  -.0130708   .0098988    -1.32   0.187    -.0324927    .0063511
    university |   .0383439   .0106702     3.59   0.000     .0174086    .0592791
           age |  -.0014733   .0003843    -3.83   0.000    -.0022273   -.0007192
       missage |  -.0621929   .0734726    -0.85   0.397    -.2063488    .0819629
          west |   .0122464    .010878     1.13   0.260    -.0090967    .0335896
         north |   .0205985   .0125362     1.64   0.101    -.0039979    .0451949
         _cons |   .7752863   .0269865    28.73   0.000     .7223378    .8282349
--------------------------------------------------------------------------------

Linear regression                               Number of obs     =      2,294
                                                F(3, 1146)        =      17.71
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0376
                                                Root MSE          =     .21759

                                   (Std. err. adjusted for 1,147 clusters in id)
--------------------------------------------------------------------------------
               |               Robust
       ranking | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
---------------+----------------------------------------------------------------
      minority |   .0491058   .0221974     2.21   0.027     .0055537    .0926578
minorityXimcpd |   .0703727   .0375998     1.87   0.062    -.0033994    .1441449
         imcpd |  -.0043452   .0306857    -0.14   0.887    -.0645517    .0558613
         _cons |   .6398589   .0181709    35.21   0.000     .6042069    .6755109
--------------------------------------------------------------------------------

Linear regression                               Number of obs     =      2,294
                                                F(10, 1146)       =       8.87
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0592
                                                Root MSE          =     .21546

                                   (Std. err. adjusted for 1,147 clusters in id)
--------------------------------------------------------------------------------
               |               Robust
       ranking | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
---------------+----------------------------------------------------------------
      minority |   .0433604   .0221014     1.96   0.050    -3.33e-06    .0867242
minorityXimcpd |   .0778629    .037464     2.08   0.038     .0043571    .1513686
         imcpd |  -.0193691   .0307649    -0.63   0.529     -.079731    .0409928
     leftparty |   .0129041   .0119032     1.08   0.279    -.0104504    .0362587
          male |  -.0325514   .0118347    -2.75   0.006    -.0557715   -.0093313
    university |    .035234    .012808     2.75   0.006     .0101042    .0603637
           age |  -.0009616   .0004568    -2.11   0.035    -.0018578   -.0000654
       missage |  -.0107131     .07193    -0.15   0.882    -.1518424    .1304161
          west |   .0295519   .0132703     2.23   0.026     .0035152    .0555886
         north |   .0237706   .0147454     1.61   0.107    -.0051605    .0527016
         _cons |    .673546   .0320736    21.00   0.000     .6106164    .7364756
--------------------------------------------------------------------------------

. 
. *TABLE A12
. foreach y in quality ranking {
  2. reg `y' minority##nonracist minority##c.leftpartyc minority##c.malec minority##c.un
> iversityc minority##c.agec minority##c.missagec minority##c.westc minority##c.northc, 
> cl(id)
  3. }

Linear regression                               Number of obs     =      2,294
                                                F(17, 1146)       =       8.07
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0843
                                                Root MSE          =     .17513

                                          (Std. err. adjusted for 1,147 clusters in id)
---------------------------------------------------------------------------------------
                      |               Robust
              quality | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------------+----------------------------------------------------------------
           1.minority |    .052724   .0136422     3.86   0.000     .0259575    .0794904
          1.nonracist |   .0162756   .0170405     0.96   0.340    -.0171584    .0497097
                      |
   minority#nonracist |
                 1 1  |   .0344669   .0205307     1.68   0.093    -.0058152     .074749
                      |
           leftpartyc |   .0026809   .0174329     0.15   0.878     -.031523    .0368849
                      |
minority#c.leftpartyc |
                   1  |   .0043295    .021025     0.21   0.837    -.0369222    .0455813
                      |
                malec |  -.0096369   .0176541    -0.55   0.585    -.0442748    .0250011
                      |
     minority#c.malec |
                   1  |  -.0039015   .0213507    -0.18   0.855    -.0457923    .0379894
                      |
          universityc |   .0333698   .0187343     1.78   0.075    -.0033877    .0701272
                      |
             minority#|
        c.universityc |
                   1  |   .0069556   .0227225     0.31   0.760    -.0376268    .0515381
                      |
                 agec |  -.0008057   .0006554    -1.23   0.219    -.0020916    .0004801
                      |
      minority#c.agec |
                   1  |  -.0010743   .0008062    -1.33   0.183    -.0026561    .0005075
                      |
             missagec |  -.2369159   .0760798    -3.11   0.002    -.3861873   -.0876446
                      |
  minority#c.missagec |
                   1  |   .2853328   .1121261     2.54   0.011     .0653374    .5053282
                      |
                westc |   .0211282   .0195132     1.08   0.279    -.0171574    .0594139
                      |
     minority#c.westc |
                   1  |  -.0152151   .0234894    -0.65   0.517    -.0613022     .030872
                      |
               northc |   .0310872   .0244914     1.27   0.205    -.0169657    .0791402
                      |
    minority#c.northc |
                   1  |  -.0186203   .0283692    -0.66   0.512    -.0742817    .0370411
                      |
                _cons |   .7198474   .0113185    63.60   0.000     .6976401    .7420548
---------------------------------------------------------------------------------------

Linear regression                               Number of obs     =      2,294
                                                F(17, 1146)       =       6.42
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0681
                                                Root MSE          =     .21477

                                          (Std. err. adjusted for 1,147 clusters in id)
---------------------------------------------------------------------------------------
                      |               Robust
              ranking | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------------+----------------------------------------------------------------
           1.minority |   .0526523   .0163587     3.22   0.001     .0205559    .0847486
          1.nonracist |  -.0120373   .0213909    -0.56   0.574    -.0540071    .0299324
                      |
   minority#nonracist |
                 1 1  |   .0693368   .0254356     2.73   0.007     .0194312    .1192425
                      |
           leftpartyc |    .019646   .0213521     0.92   0.358    -.0222475    .0615396
                      |
minority#c.leftpartyc |
                   1  |   -.012573   .0255911    -0.49   0.623    -.0627837    .0376377
                      |
                malec |  -.0333525   .0218624    -1.53   0.127    -.0762473    .0095422
                      |
     minority#c.malec |
                   1  |   .0040515   .0260385     0.16   0.876    -.0470369    .0551399
                      |
          universityc |   .0118177   .0229286     0.52   0.606     -.033169    .0568044
                      |
             minority#|
        c.universityc |
                   1  |   .0340642    .027596     1.23   0.217    -.0200801    .0882086
                      |
                 agec |   -.001123   .0007724    -1.45   0.146    -.0026385    .0003926
                      |
      minority#c.agec |
                   1  |   .0002039   .0009564     0.21   0.831    -.0016727    .0020805
                      |
             missagec |  -.1151934     .09503    -1.21   0.226    -.3016457    .0712589
                      |
  minority#c.missagec |
                   1  |   .1686828   .1312069     1.29   0.199      -.08875    .4261155
                      |
                westc |   .0231572   .0244005     0.95   0.343    -.0247175    .0710318
                      |
     minority#c.westc |
                   1  |   .0067194   .0290227     0.23   0.817    -.0502242     .063663
                      |
               northc |  -.0010498   .0279794    -0.04   0.970    -.0559465    .0538468
                      |
    minority#c.northc |
                   1  |   .0339782   .0328975     1.03   0.302    -.0305679    .0985242
                      |
                _cons |   .6450518   .0137333    46.97   0.000     .6181065    .6719971
---------------------------------------------------------------------------------------

. 
. *TABLE A14
. foreach y in quality ranking {
  2. reg `y' minority  others_notme, cl(id)  
  3. reg `y' minority minorityXnonracist nonracist  minorityXothers_notme others_notme, 
> cl(id)
  4. }

Linear regression                               Number of obs     =      2,190
                                                F(2, 1094)        =      22.42
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0340
                                                Root MSE          =     .17905

                                 (Std. err. adjusted for 1,095 clusters in id)
------------------------------------------------------------------------------
             |               Robust
     quality | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
    minority |   .0716533   .0107541     6.66   0.000     .0505523    .0927544
others_notme |  -.0157021   .0182948    -0.86   0.391    -.0515991    .0201948
       _cons |   .7257896    .009036    80.32   0.000     .7080597    .7435195
------------------------------------------------------------------------------

Linear regression                               Number of obs     =      2,190
                                                F(5, 1094)        =      12.95
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0480
                                                Root MSE          =     .17788

                                          (Std. err. adjusted for 1,095 clusters in id)
---------------------------------------------------------------------------------------
                      |               Robust
              quality | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------------+----------------------------------------------------------------
             minority |   .0576109   .0145234     3.97   0.000      .029114    .0861078
   minorityXnonracist |   .0231762   .0214541     1.08   0.280    -.0189197     .065272
            nonracist |   .0255137   .0179778     1.42   0.156    -.0097613    .0607886
minorityXothers_notme |   .0338187   .0409236     0.83   0.409    -.0464789    .1141162
         others_notme |  -.0378049   .0351233    -1.08   0.282    -.1067216    .0311118
                _cons |   .7179604   .0120417    59.62   0.000     .6943331    .7415878
---------------------------------------------------------------------------------------

Linear regression                               Number of obs     =      2,190
                                                F(2, 1094)        =      22.19
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0334
                                                Root MSE          =     .21724

                                 (Std. err. adjusted for 1,095 clusters in id)
------------------------------------------------------------------------------
             |               Robust
     ranking | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
    minority |    .085957   .0130131     6.61   0.000     .0604235    .1114906
others_notme |  -.0198676   .0200978    -0.99   0.323    -.0593021     .019567
       _cons |   .6392037   .0110869    57.65   0.000     .6174497    .6609576
------------------------------------------------------------------------------

Linear regression                               Number of obs     =      2,190
                                                F(5, 1094)        =      11.86
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0442
                                                Root MSE          =     .21617

                                          (Std. err. adjusted for 1,095 clusters in id)
---------------------------------------------------------------------------------------
                      |               Robust
              ranking | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
----------------------+----------------------------------------------------------------
             minority |     .05756   .0171596     3.35   0.001     .0238905    .0912295
   minorityXnonracist |    .053941    .026486     2.04   0.042     .0019718    .1059101
            nonracist |  -.0005445   .0224007    -0.02   0.981    -.0444977    .0434086
minorityXothers_notme |   .0517042   .0448437     1.15   0.249    -.0362851    .1396936
         others_notme |  -.0532404   .0384649    -1.38   0.167    -.1287137    .0222329
                _cons |   .6430323   .0143382    44.85   0.000     .6148989    .6711658
---------------------------------------------------------------------------------------

. 
end of do-file

. 
. do voters_experiment.do

. *This code reproduces the analyses of the experiment on voters. 
. *Running the code produces a set of figures that are saved in the working directory
. 
. 
. clear

. use voters_experiment

. 
. *TABLE 2
. reg number treatment secondlist, r

Linear regression                               Number of obs     =      3,132
                                                F(2, 3129)        =     430.49
                                                Prob > F          =     0.0000
                                                R-squared         =     0.2203
                                                Root MSE          =     1.6106

------------------------------------------------------------------------------
             |               Robust
      number | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
   treatment |    .130482   .0573669     2.27   0.023     .0180013    .2429626
  secondlist |  -1.718634   .0586286   -29.31   0.000    -1.833589    -1.60368
       _cons |   4.000791   .0443632    90.18   0.000     3.913807    4.087775
------------------------------------------------------------------------------

. reg number treatment if secondlist==0, r

Linear regression                               Number of obs     =      1,759
                                                F(1, 1757)        =       1.78
                                                Prob > F          =     0.1822
                                                R-squared         =     0.0010
                                                Root MSE          =     1.5457

------------------------------------------------------------------------------
             |               Robust
      number | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
   treatment |   .0978645   .0733258     1.33   0.182    -.0459505    .2416795
       _cons |   4.017647   .0481152    83.50   0.000     3.923278    4.112016
------------------------------------------------------------------------------

. reg number treatment if secondlist==1, r

Linear regression                               Number of obs     =      1,373
                                                F(1, 1371)        =       3.57
                                                Prob > F          =     0.0589
                                                R-squared         =     0.0026
                                                Root MSE          =     1.6904

------------------------------------------------------------------------------
             |               Robust
      number | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
   treatment |   .1722437    .091118     1.89   0.059    -.0065022    .3509895
       _cons |   2.260805   .0628401    35.98   0.000     2.137532    2.384078
------------------------------------------------------------------------------

. 
. *TABLE 4
. reg number treatment treatmentXleftparty leftparty secondlist, r

Linear regression                               Number of obs     =      3,132
                                                F(4, 3127)        =     216.87
                                                Prob > F          =     0.0000
                                                R-squared         =     0.2218
                                                Root MSE          =     1.6095

-------------------------------------------------------------------------------------
                    |               Robust
             number | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
--------------------+----------------------------------------------------------------
          treatment |   .2141893   .0709631     3.02   0.003     .0750504    .3533282
treatmentXleftparty |  -.2528501    .120235    -2.10   0.036    -.4885977   -.0171025
          leftparty |   .0445583   .0824178     0.54   0.589    -.1170402    .2061567
         secondlist |  -1.711956   .0587864   -29.12   0.000    -1.827219   -1.596692
              _cons |   3.982699   .0512803    77.67   0.000     3.882153    4.083246
-------------------------------------------------------------------------------------

. reg number treatment treatmentXleftparty leftparty if secondlist==0, r

Linear regression                               Number of obs     =      1,759
                                                F(3, 1755)        =       3.06
                                                Prob > F          =     0.0274
                                                R-squared         =     0.0048
                                                Root MSE          =     1.5436

-------------------------------------------------------------------------------------
                    |               Robust
             number | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
--------------------+----------------------------------------------------------------
          treatment |   .2198523   .0887734     2.48   0.013     .0457396    .3939649
treatmentXleftparty |  -.4156117   .1563527    -2.66   0.008    -.7222688   -.1089545
          leftparty |       .247   .1039592     2.38   0.018      .043103     .450897
              _cons |      3.945   .0576364    68.45   0.000     3.831957    4.058043
-------------------------------------------------------------------------------------

. reg number treatment treatmentXleftparty leftparty if secondlist==1, r

Linear regression                               Number of obs     =      1,373
                                                F(3, 1369)        =       2.87
                                                Prob > F          =     0.0353
                                                R-squared         =     0.0066
                                                Root MSE          =     1.6882

-------------------------------------------------------------------------------------
                    |               Robust
             number | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
--------------------+----------------------------------------------------------------
          treatment |   .2052308   .1171103     1.75   0.080    -.0245042    .4349658
treatmentXleftparty |  -.0973401   .1857072    -0.52   0.600    -.4616416    .2669614
          leftparty |   -.165684   .1292843    -1.28   0.200    -.4193007    .0879327
              _cons |   2.326733   .0797435    29.18   0.000       2.1703    2.483165
-------------------------------------------------------------------------------------

. 
. *TABLE A2
. su treatment male university age west north leftparty if secondlist==0 & number!=.

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
   treatment |      1,759    .5167709    .4998608          0          1
        male |      1,759    .4826606    .4998414          0          1
  university |      1,759    .6287663    .4832722          0          1
         age |      1,759    55.30699    15.27589         25         85
        west |      1,759    .3155202    .4648549          0          1
-------------+---------------------------------------------------------
       north |      1,759    .1563388    .3632795          0          1
   leftparty |      1,759    .2933485    .4554263          0          1

. su treatment male university age west north leftparty if secondlist==1 & number!=.

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
   treatment |      1,373    .5112891    .5000547          0          1
        male |      1,373    .4894392    .5000706          0          1
  university |      1,373    .5367808     .498827          0          1
         age |      1,373    47.66278    16.94204         18         88
        west |      1,373    .2993445    .4581378          0          1
-------------+---------------------------------------------------------
       north |      1,373     .195193    .3964936          0          1
   leftparty |      1,373    .3867444    .4871817          0          1

. 
. *TABLE A3 (columns 2-3)
. reg treatment male university age west north leftparty if secondlist==0, r

Linear regression                               Number of obs     =      1,892
                                                F(6, 1885)        =       0.92
                                                Prob > F          =     0.4814
                                                R-squared         =     0.0029
                                                Root MSE          =     .50002

------------------------------------------------------------------------------
             |               Robust
   treatment | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
        male |  -.0266858   .0232995    -1.15   0.252    -.0723812    .0190097
  university |   -.032139   .0238062    -1.35   0.177    -.0788283    .0145504
         age |  -.0009246    .000758    -1.22   0.223    -.0024113    .0005621
        west |  -.0247728   .0259745    -0.95   0.340    -.0757145    .0261689
       north |  -.0154087    .032923    -0.47   0.640    -.0799781    .0491607
   leftparty |  -.0033373    .025577    -0.13   0.896    -.0534995    .0468249
       _cons |   .6090668   .0488551    12.47   0.000     .5132511    .7048825
------------------------------------------------------------------------------

. testparm male university age west north leftparty

 ( 1)  male = 0
 ( 2)  university = 0
 ( 3)  age = 0
 ( 4)  west = 0
 ( 5)  north = 0
 ( 6)  leftparty = 0

       F(  6,  1885) =    0.92
            Prob > F =    0.4814

. reg treatment male university age west north leftparty if secondlist==1, r

Linear regression                               Number of obs     =      2,562
                                                F(6, 2555)        =       0.09
                                                Prob > F          =     0.9974
                                                R-squared         =     0.0002
                                                Root MSE          =     .50063

------------------------------------------------------------------------------
             |               Robust
   treatment | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
        male |   .0095034   .0203655     0.47   0.641    -.0304311    .0494379
  university |   .0000755   .0205808     0.00   0.997    -.0402812    .0404323
         age |  -.0002056   .0006021    -0.34   0.733    -.0013863    .0009751
        west |   .0108464   .0230092     0.47   0.637    -.0342722     .055965
       north |   .0048619   .0263529     0.18   0.854    -.0468132     .056537
   leftparty |   .0000117   .0207245     0.00   1.000    -.0406267    .0406501
       _cons |   .5018808   .0372721    13.47   0.000     .4287943    .5749673
------------------------------------------------------------------------------

. testparm male university age west north leftparty

 ( 1)  male = 0
 ( 2)  university = 0
 ( 3)  age = 0
 ( 4)  west = 0
 ( 5)  north = 0
 ( 6)  leftparty = 0

       F(  6,  2555) =    0.09
            Prob > F =    0.9974

. 
. *TABLE A4
. reg missing treatment if secondlist==0, r

Linear regression                               Number of obs     =      1,892
                                                F(1, 1890)        =       0.91
                                                Prob > F          =     0.3390
                                                R-squared         =     0.0005
                                                Root MSE          =     .25572

------------------------------------------------------------------------------
             |               Robust
     missing | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
   treatment |  -.0112721   .0117863    -0.96   0.339    -.0343877    .0118434
       _cons |    .076087   .0087459     8.70   0.000     .0589342    .0932397
------------------------------------------------------------------------------

. reg missing treatment if secondlist==1, r

Linear regression                               Number of obs     =      2,562
                                                F(1, 2560)        =       1.41
                                                Prob > F          =     0.2359
                                                R-squared         =     0.0005
                                                Root MSE          =     .49877

------------------------------------------------------------------------------
             |               Robust
     missing | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
   treatment |  -.0233632   .0197078    -1.19   0.236    -.0620081    .0152818
       _cons |   .4757812   .0139645    34.07   0.000     .4483984    .5031641
------------------------------------------------------------------------------

. 
. *FIGURE A5
. reg number treated secondlist, r  

Linear regression                               Number of obs     =      3,132
                                                F(2, 3129)        =     430.49
                                                Prob > F          =     0.0000
                                                R-squared         =     0.2203
                                                Root MSE          =     1.6106

------------------------------------------------------------------------------
             |               Robust
      number | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
     treated |    .130482   .0573669     2.27   0.023     .0180013    .2429626
  secondlist |  -1.718634   .0586286   -29.31   0.000    -1.833589    -1.60368
       _cons |   4.000791   .0443632    90.18   0.000     3.913807    4.087775
------------------------------------------------------------------------------

. coefplot, keep(treated) title("Pooled", color(black) size(medsmall) ) coeflab(treated 
> = "Treatment effect") color(black) graphregion(color(gs16)) ciopts(color(black)) plotr
> egion(style(none)) vertical  ylab(, angle(0) nogrid)

. graph save Graph "treatment_pooled.gph", replace
file treatment_pooled.gph saved

. 
. reg number treated if secondlist==0, r 

Linear regression                               Number of obs     =      1,759
                                                F(1, 1757)        =       1.78
                                                Prob > F          =     0.1822
                                                R-squared         =     0.0010
                                                Root MSE          =     1.5457

------------------------------------------------------------------------------
             |               Robust
      number | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
     treated |   .0978645   .0733258     1.33   0.182    -.0459505    .2416795
       _cons |   4.017647   .0481152    83.50   0.000     3.923278    4.112016
------------------------------------------------------------------------------

. coefplot, keep(treated control) title("First experiment", color(black) size(medsmall) 
> ) coeflab(treated = "Treatment effect") color(black) graphregion(color(gs16)) ciopts(c
> olor(black)) plotregion(style(none)) vertical  ylab(, angle(0) nogrid)

. graph save Graph "treatment_firstlist.gph", replace
file treatment_firstlist.gph saved

. 
. reg number treated  if secondlist==1, r 

Linear regression                               Number of obs     =      1,373
                                                F(1, 1371)        =       3.57
                                                Prob > F          =     0.0589
                                                R-squared         =     0.0026
                                                Root MSE          =     1.6904

------------------------------------------------------------------------------
             |               Robust
      number | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
     treated |   .1722437    .091118     1.89   0.059    -.0065022    .3509895
       _cons |   2.260805   .0628401    35.98   0.000     2.137532    2.384078
------------------------------------------------------------------------------

. coefplot, keep(treated control) title("Second experiment", color(black) size(medsmall)
>  ) coeflab(treated = "Treatment effect" control = "Control") color(black) graphregion(
> color(gs16)) ciopts(color(black)) plotregion(style(none)) vertical  ylab(, angle(0) no
> grid)

. graph save Graph "treatment_secondlist.gph", replace
file treatment_secondlist.gph saved

. 
. graph combine  "treatment_pooled.gph" "treatment_firstlist.gph" "treatment_secondlist.
> gph", rows(1)  graphregion(color(gs16)) ycommon

. 
. *TABLE A10
. reg number treatment secondlist [pweight=vekt], r
(sum of wgt is 3,201.58903247118)

Linear regression                               Number of obs     =      3,132
                                                F(2, 3129)        =     180.65
                                                Prob > F          =     0.0000
                                                R-squared         =     0.2010
                                                Root MSE          =     1.6539

------------------------------------------------------------------------------
             |               Robust
      number | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
   treatment |   .1739672   .1017958     1.71   0.088     -.025626    .3735605
  secondlist |  -1.663941   .0938229   -17.73   0.000    -1.847901    -1.47998
       _cons |   3.919881   .1093137    35.86   0.000     3.705547    4.134214
------------------------------------------------------------------------------

. reg number treatment treatXsecondlistc secondlistc [pweight=vekt], r
(sum of wgt is 3,201.58903247118)

Linear regression                               Number of obs     =      3,132
                                                F(3, 3128)        =     120.39
                                                Prob > F          =     0.0000
                                                R-squared         =     0.2010
                                                Root MSE          =     1.6542

-----------------------------------------------------------------------------------
                  |               Robust
           number | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
------------------+----------------------------------------------------------------
        treatment |   .1749485   .0879004     1.99   0.047     .0026003    .3472967
treatXsecondlistc |   .0068531   .1890015     0.04   0.971    -.3637265    .3774326
      secondlistc |  -1.667466   .1497625   -11.13   0.000    -1.961109   -1.373824
            _cons |    2.96226   .0682486    43.40   0.000     2.828443    3.096077
-----------------------------------------------------------------------------------

. reg number treatment [pweight=vekt] if secondlist==0, r
(sum of wgt is 1,818.68406122923)

Linear regression                               Number of obs     =      1,759
                                                F(1, 1757)        =       1.07
                                                Prob > F          =     0.3000
                                                R-squared         =     0.0028
                                                Root MSE          =     1.6255

------------------------------------------------------------------------------
             |               Robust
      number | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
   treatment |   .1710065   .1649355     1.04   0.300    -.1524839    .4944969
       _cons |   3.921409    .135522    28.94   0.000     3.655607     4.18721
------------------------------------------------------------------------------

. reg number treatment [pweight=vekt] if secondlist==1, r
(sum of wgt is 1,382.90497124195)

Linear regression                               Number of obs     =      1,373
                                                F(1, 1371)        =       3.71
                                                Prob > F          =     0.0541
                                                R-squared         =     0.0028
                                                Root MSE          =     1.6912

------------------------------------------------------------------------------
             |               Robust
      number | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
   treatment |   .1778596   .0922799     1.93   0.054    -.0031655    .3588847
       _cons |   2.253942   .0637238    35.37   0.000     2.128936    2.378949
------------------------------------------------------------------------------

. 
. *TABLE A13
. reg number treatment treatmentXleftparty leftparty secondlist [pweight=vekt], r
(sum of wgt is 3,201.58903247118)

Linear regression                               Number of obs     =      3,132
                                                F(4, 3127)        =     101.80
                                                Prob > F          =     0.0000
                                                R-squared         =     0.2028
                                                Root MSE          =     1.6526

-------------------------------------------------------------------------------------
                    |               Robust
             number | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
--------------------+----------------------------------------------------------------
          treatment |   .2749389   .1357654     2.03   0.043     .0087406    .5411372
treatmentXleftparty |  -.3381524   .1799303    -1.88   0.060    -.6909459    .0146412
          leftparty |   .1433036   .1300653     1.10   0.271    -.1117184    .3983256
         secondlist |  -1.662571   .0899778   -18.48   0.000    -1.838993    -1.48615
              _cons |   3.876612   .1323349    29.29   0.000      3.61714    4.136084
-------------------------------------------------------------------------------------

. reg number treatment  treatmentXleftparty leftparty treatcXsecondlistc secondlistc tre
> atcXmalec malec treatcXagec agec treatcXuniversityc universityc treatcXnorthc northc t
> reatcXwestc westc secXleftpartyc secXmalec secXagec secXuniversityc secXnorthc secXwes
> tc, r

Linear regression                               Number of obs     =      3,132
                                                F(21, 3110)       =      47.58
                                                Prob > F          =     0.0000
                                                R-squared         =     0.2371
                                                Root MSE          =     1.5979

-------------------------------------------------------------------------------------
                    |               Robust
             number | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
--------------------+----------------------------------------------------------------
          treatment |   .2313493   .0752927     3.07   0.002     .0837208    .3789777
treatmentXleftparty |  -.2594257   .1216414    -2.13   0.033    -.4979313   -.0209202
          leftparty |   .0269063   .0854223     0.31   0.753    -.1405835    .1943961
 treatcXsecondlistc |   .1083193   .1229803     0.88   0.379    -.1328114    .3494501
        secondlistc |  -1.629701   .0620973   -26.24   0.000    -1.751457   -1.507945
       treatcXmalec |   .0493761    .116814     0.42   0.673    -.1796643    .2784166
              malec |  -.0210965   .0619425    -0.34   0.733    -.1425488    .1003559
        treatcXagec |   .0051681   .0036702     1.41   0.159    -.0020282    .0123645
               agec |   .0118033   .0019082     6.19   0.000     .0080619    .0155448
 treatcXuniversityc |  -.0483842   .1200196    -0.40   0.687    -.2837098    .1869414
        universityc |  -.0757833   .0633332    -1.20   0.232    -.1999624    .0483959
      treatcXnorthc |  -.0380184   .1592319    -0.24   0.811    -.3502288    .2741919
             northc |   .0450996   .0825011     0.55   0.585    -.1166626    .2068618
       treatcXwestc |  -.0384562   .1298429    -0.30   0.767    -.2930428    .2161304
              westc |   .1257548   .0698953     1.80   0.072    -.0112908    .2628005
     secXleftpartyc |  -.2125085   .1230978    -1.73   0.084    -.4538696    .0288526
          secXmalec |   .0511089   .1193954     0.43   0.669    -.1829929    .2852106
           secXagec |   -.002579   .0037154    -0.69   0.488    -.0098639    .0047059
    secXuniversityc |   .0007736   .1223685     0.01   0.995    -.2391576    .2407049
         secXnorthc |   .0687056   .1605392     0.43   0.669     -.246068    .3834791
          secXwestc |   .0095146   .1336477     0.07   0.943    -.2525321    .2715613
              _cons |   3.010603   .0523008    57.56   0.000     2.908056    3.113151
-------------------------------------------------------------------------------------

. 
. 
end of do-file

. 
. log close
      name:  <unnamed>
       log:  C:\Users\finseraa\Dropbox\bias_politicians\paper\JOP\Round 2\replication\jo
> p_replication.log
  log type:  text
 closed on:   8 Mar 2023, 19:08:10
----------------------------------------------------------------------------------------
